package zj.it.bhne.gridengineeringsurvey.entity;

import java.util.List;

public class TestBean {

    /**
     * errorCode : null
     * msg : null
     * data : {"content":[{"id":71,"type":{"code":"4-1","name":"养生知识","createTime":1532067650000,"valid":true,"sort":2},"pic":"article/1532590665909_1.jpg","title":"红茶可以减少与肥胖相关的微生物群","createTime":1537510971000,"open":true,"favorites":false},{"id":70,"type":{"code":"2-1","name":"用药知识","createTime":1532067497000,"valid":true,"sort":4},"pic":"article/1532590550442_1.jpg","title":"服用什么有效止咳药同时不会造成血压升高","createTime":1537510965000,"open":true,"favorites":false},{"id":12,"type":{"code":"2-1","name":"用药知识","createTime":1532067497000,"valid":true,"sort":4},"pic":"article/1532069723394_1.jpg","title":"详解肺炎的危害性和治疗方案","author":"巧医联盟","createTime":1537510959000,"open":true,"favorites":false}],"last":true,"totalElements":3,"totalPages":1,"first":true,"sort":null,"numberOfElements":3,"size":3,"number":0}
     * pageIndex : null
     * pageSize : null
     * totalPages : null
     * totalItems : null
     * success : true
     */

    private Object errorCode;
    private Object msg;
    private DataBean data;
    private Object pageIndex;
    private Object pageSize;
    private Object totalPages;
    private Object totalItems;
    private boolean success;

    public Object getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Object errorCode) {
        this.errorCode = errorCode;
    }

    public Object getMsg() {
        return msg;
    }

    public void setMsg(Object msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public Object getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Object pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Object getPageSize() {
        return pageSize;
    }

    public void setPageSize(Object pageSize) {
        this.pageSize = pageSize;
    }

    public Object getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Object totalPages) {
        this.totalPages = totalPages;
    }

    public Object getTotalItems() {
        return totalItems;
    }

    public void setTotalItems(Object totalItems) {
        this.totalItems = totalItems;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public static class DataBean {
        /**
         * content : [{"id":71,"type":{"code":"4-1","name":"养生知识","createTime":1532067650000,"valid":true,"sort":2},"pic":"article/1532590665909_1.jpg","title":"红茶可以减少与肥胖相关的微生物群","createTime":1537510971000,"open":true,"favorites":false},{"id":70,"type":{"code":"2-1","name":"用药知识","createTime":1532067497000,"valid":true,"sort":4},"pic":"article/1532590550442_1.jpg","title":"服用什么有效止咳药同时不会造成血压升高","createTime":1537510965000,"open":true,"favorites":false},{"id":12,"type":{"code":"2-1","name":"用药知识","createTime":1532067497000,"valid":true,"sort":4},"pic":"article/1532069723394_1.jpg","title":"详解肺炎的危害性和治疗方案","author":"巧医联盟","createTime":1537510959000,"open":true,"favorites":false}]
         * last : true
         * totalElements : 3
         * totalPages : 1
         * first : true
         * sort : null
         * numberOfElements : 3
         * size : 3
         * number : 0
         */

        private boolean last;
        private int totalElements;
        private int totalPages;
        private boolean first;
        private Object sort;
        private int numberOfElements;
        private int size;
        private int number;
        private List<ContentBean> content;

        public boolean isLast() {
            return last;
        }

        public void setLast(boolean last) {
            this.last = last;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public boolean isFirst() {
            return first;
        }

        public void setFirst(boolean first) {
            this.first = first;
        }

        public Object getSort() {
            return sort;
        }

        public void setSort(Object sort) {
            this.sort = sort;
        }

        public int getNumberOfElements() {
            return numberOfElements;
        }

        public void setNumberOfElements(int numberOfElements) {
            this.numberOfElements = numberOfElements;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        public static class ContentBean {
            /**
             * id : 71
             * type : {"code":"4-1","name":"养生知识","createTime":1532067650000,"valid":true,"sort":2}
             * pic : article/1532590665909_1.jpg
             * title : 红茶可以减少与肥胖相关的微生物群
             * createTime : 1537510971000
             * open : true
             * favorites : false
             * author : 巧医联盟
             */

            private int id;
            private TypeBean type;
            private String pic;
            private String title;
            private long createTime;
            private boolean open;
            private boolean favorites;
            private String author;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public TypeBean getType() {
                return type;
            }

            public void setType(TypeBean type) {
                this.type = type;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public boolean isOpen() {
                return open;
            }

            public void setOpen(boolean open) {
                this.open = open;
            }

            public boolean isFavorites() {
                return favorites;
            }

            public void setFavorites(boolean favorites) {
                this.favorites = favorites;
            }

            public String getAuthor() {
                return author;
            }

            public void setAuthor(String author) {
                this.author = author;
            }

            public static class TypeBean {
                /**
                 * code : 4-1
                 * name : 养生知识
                 * createTime : 1532067650000
                 * valid : true
                 * sort : 2
                 */

                private String code;
                private String name;
                private long createTime;
                private boolean valid;
                private int sort;

                public String getCode() {
                    return code;
                }

                public void setCode(String code) {
                    this.code = code;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public long getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(long createTime) {
                    this.createTime = createTime;
                }

                public boolean isValid() {
                    return valid;
                }

                public void setValid(boolean valid) {
                    this.valid = valid;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }
            }
        }
    }
}
